import Qt 4.7

Item {
    width: 45 * app.scaleFactor
    height: 59 * app.scaleFactor

    objectName: "enemy"
    id: root
    Image {

        anchors.fill: parent
        source: "pic/bottle_final2.png"
    }

    property bool done: false

    Behavior on x {
        NumberAnimation {
            duration: 500
        }

    }

    Behavior on y {
        NumberAnimation {
            duration: 500
        }

    }

    function collided() {
        root.x = 1000
        root.y = -200
        root.done = true
        //root.opacity = 0
    }

}
